package com.ruoyi.standingbook.maintenance.mapper;

import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.standingbook.maintenance.domain.Maintenance;
import com.ruoyi.standingbook.maintenance.domain.bo.MaintenancePicBo;
import com.ruoyi.standingbook.maintenance.domain.vo.MaintenanceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 其它管养任务完成进度Mapper接口
 *
 * @author cc
 * @date 2023-08-29
 */
public interface MaintenanceMapper extends BaseMapperPlus<MaintenanceMapper, Maintenance, MaintenanceVo> {


    List<MaintenancePicBo> selectPicByDate(@Param("date") String date);

    Integer selectSumByDate(@Param("date") String date, @Param("community") String community,
                            @Param("status") String status);

    Integer selectSumByYear(@Param("date") String date, @Param("community") String community,
                            @Param("status") String status);

    Integer statisticsNumYearToNow();
}
